<?php
declare (strict_types=1);

namespace app\admin\model\shop\order;


use app\admin\model\shop\delivery\Company;
use think\Model;
use think\model\relation\BelongsTo;

class OrderDelivery extends Model
{
    protected $name = 'shop_order_delivery';

    protected $autoWriteTimestamp = true;

    public function company(): BelongsTo
    {
        return $this->belongsTo(Company::class, 'delivery_company_id', 'id');
    }
}
